package com.demo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author AoDeng
 * @date 10:10 21-9-26
 */
@FeignClient(value = "service1")
//@LoadBalancerClient(name="service1",configuration = RandomLBConfig.class)
public interface ProviderClient {


    @GetMapping(value = "/main/tet/{type}")
    public String test(@PathVariable("type") String string);

    @GetMapping(value = "/main/tt1")
    public String test1();
//    @GetMapping("getInfo")
//    String getInfo(@RequestParam(value = "name",defaultValue = "nacosConfig",required = false)String name);
}

